package com.jic.order.enums;

public enum PayTypeEnum {
    TESTER(0,"用于自动化测试模拟的支付方式"),
    WEBANK(1,"微信分期"),
    WEXIN(2,"We2000"),
    TIHUOKA(3,"微信支付");
    private Integer code;

    private String message;

    PayTypeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public static PayTypeEnum getByCode(Integer code){
        PayTypeEnum[] values = PayTypeEnum.values();
        for(PayTypeEnum value : values){
            if(value.getCode().equals(code)){
                return value;
            }
        }
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


}
